export default (val) => {
    var time = new Date(val);
    var y = time.getFullYear();
    var m = time.getMonth() + 1;
    var d = time.getDate();
    var h = time.getHours().toLocaleString().padStart(2, "0");
    var mm = time.getMinutes().toLocaleString().padStart(2, "0");
    var s = time.getSeconds().toLocaleString().padStart(2, "0");
    return y + "-" + m + "-" + d + " " + h + ":" + mm + ":" + s;
}
function fn(a) {
    // if(a<10){
    //     return "0"+a
    // }else{
    //     return a
    // }
}